﻿using GZHJ.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VM.Shared.TestAttribute;

namespace 测试工具
{
    /// <summary>
    /// 数组截取
    /// </summary>
    public class 数组截取
    {
        /// <summary>
        /// Doubles截取
        /// </summary>
        /// <param name="数组"></param>
        /// <param name="numb"></param>
        /// <param name="值"></param>
        /// <returns></returns>
        [ExposedMethodAttribute("这是Class1Method1")]
        public double Doubles截取(double[] 数组, int numb ,out double 值)
        {
            值 = 数组[numb];
            LogHelper.Debug($"【Doubles截取】源数据：{string.Join("，",数组)}，截取值：{值}");
            return 值;
        }
        /// <summary>
        /// Bools截取
        /// </summary>
        /// <param name="数组"></param>
        /// <param name="numb"></param>
        /// <param name="值"></param>
        /// <returns></returns>
        [ExposedMethodAttribute("这是Class1Method1")]
        public bool Bools截取(bool[] 数组, int numb, out bool 值)
        {
            值 = 数组[numb];
            LogHelper.Debug($"【Bools截取】源数据：{string.Join("，", 数组)}，截取值：{值}");
            return 值;
        }
        /// <summary>
        /// Ints截取
        /// </summary>
        /// <param name="数组"></param>
        /// <param name="numb"></param>
        /// <param name="值"></param>
        /// <returns></returns>
        [ExposedMethodAttribute("这是Class1Method1")]
        public int Ints截取(int[] 数组, int numb, out int 值)
        {
            值 = 数组[numb];
            LogHelper.Debug($"【Ints截取】源数据：{string.Join("，", 数组)}，截取值：{值}");
            return 值;
        }
        /// <summary>
        /// Strings截取
        /// </summary>
        /// <param name="数组"></param>
        /// <param name="numb"></param>
        /// <param name="值"></param>
        /// <returns></returns>
        [ExposedMethodAttribute("这是Class1Method1")]
        public string Strings截取(string[] 数组, int numb, out string 值)
        {
            值 = 数组[numb];
            LogHelper.Debug($"【Strings截取】源数据：{string.Join("，", 数组)}，截取值：{值}");
            return 值;
        }
    }
}
